package com.leyou.item.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @create: 2019-07-12 13:31
 **/
@RequestMapping("category")
public interface CategoryApi {

    /**
     * 根据一个分类id集合来查询多个分类对象，并返回对象的名称集合
     *
     * @param ids
     * @return
     */
    @GetMapping
    List<String> queryNamesByIds(@RequestParam("ids") List<Long> ids);
}
